package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;


import java.util.Date;

@Alias("admin")
@Table(name = "admin")
public class Admin implements Serializable  {
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//id							
	@Column(name = "id")
	private Integer id;
	//名称							
	@Column(name = "name")
	private String name;
	//密码							
	@Column(name = "password")
	private String password;
	//创建时间							
	@Column(name = "create_time")
	private Date createTime;
	//状态/类型							
	@Column(name = "type")
	private Integer type;
	@Column(name = "account")
	private String account;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

}